import { useComp } from '@/hooks'
import { ElButton } from 'element-plus'
import { hello } from '@/api'

export default useComp(() => {
  const fetchData = async () => {
    const res = await hello()
    console.log(res)
  }
  return () => (
    <div>
      <ElButton onClick={fetchData}>按钮</ElButton>
    </div>
  )
})
